﻿<%@ Page Title="" Language="C#" MasterPageFile="~/info/Info.master" AutoEventWireup="true" CodeBehind="list.aspx.cs" Inherits="ZF.WS.info.list" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

<style>

</style>

<script>
    $(function() {
    $(".itlist a[@bind=<%=this.Id %>]").addClass("active");
        
    });
</script>
<style>
.info .istop{ background:#F2F9FF; margin-top:1px;}
</style>
 
    <div class="board info  w100_ " style="width: 100%">
        <dl>
            <dd>
                <zf:ListView ID="lvList" runat="server">
                    <LayoutTemplate>
                        <zf:PlaceHolder ID="itemPlaceHolder" runat="server">
                        </zf:PlaceHolder>
                    </LayoutTemplate>
                    <ItemTemplate>
                        <table class="w100_ <%#((bool) Eval("Info.IsTop"))?"istop":"" %> ">
                            <tr>
                                <td>
                                    <a href="/info/view.aspx?id=<%#Eval("Info.InfoId") %>">
                                        <img src="/photo/info/<%#Eval("Info.FirstPhoto") %>" style="width: 50px; height: 50px;
                                            margin-left: 5px" />
                                    </a>
                                </td>
                                <td class="t1">
                                    <p class="p1">
                                        <a href="/info/view.aspx?id=<%#Eval("Info.InfoId") %>">
                                            <%#Eval("Info.Title") %></a>&nbsp;<span style="color: #A651A6">(<%#Eval("City") %>)</span></p>
                                    <br />
                                    <p class="p2">
                                        <%# string.Concat( Eval("PCtn") ).MaxLength(50)%></p>
                                </td>
                                <td class="t2">
                                    <a href="/info/view.aspx?id=<%#Eval("Info.InfoId") %>">
                                    <%#Eval("Price") %>
                                         </a>
                                </td>
                                <td class="t3">
                                    <%# ((DateTime)Eval("Info.AddTime")).ToShortDateString()%>
                                </td>
                            </tr>
                        </table>
                    </ItemTemplate>
                </zf:ListView>
            </dd>
            <dd class="page">
                <table>
                    <tr>
                        <td> 
                     
                            <a href="<%=_param %>&pi=0">首 页</a> 
                            <a href="<%=_param %>&pi=<%=this.Pi > 0 ? Pi - 1 : 0 %>">
                                上一页</a> 
                                <a href="<%=_param %>&pi=<%=this.Pi+1 %>">下一页</a>
                            <a href="<%=_param %>&pi=999999">未 页</a> &nbsp;
                        </td>
                    </tr>
                </table>
            </dd>
        </dl>
    </div>
    
</asp:Content>
